//
//  YHOptionTitleTableViewCell.h
//  ScriptKill
//
//  Created by 林宁宁 on 2021/4/28.
//  Copyright © 2021 优智汇. All rights reserved.
//

#import <YHBase/YHBaseTableViewCell.h>
#import "YHOptionLayoutConstant.h"
#import "YHOptionTableViewItem.h"

NS_ASSUME_NONNULL_BEGIN

@interface YHOptionTitleTableViewCell : YHBaseTableViewCell

/// 显示整行 没有标题
@property (assign, nonatomic) BOOL isFullCell;
@property (assign, nonatomic) BOOL isFullNoneSpaceCell;

/// cellcotnent的水平间距
@property (assign, nonatomic) CGFloat contentHorizontalSpac;

/// 菜单信息放这里 中间视图
@property (retain, nonatomic) UIView * cellOptionContentView;

/// 用户自己自定义的视图 引用
@property (weak, nonatomic) UIView * cellOptionCustomView;



/// ==== 左侧视图 默认显示标题

/// 左侧视图 显示类型
@property (assign, nonatomic) YHOptionCellLeftShowType leftShowType;

/// 左侧 标题视图
@property (retain, nonatomic) UILabel * leftTitleView;
/// 左侧 图标
@property (retain, nonatomic) UIImageView * leftImageView;



/// ==== 右侧视图 默认隐藏

/// 右侧视图 显示类型
@property (assign, nonatomic) YHOptionCellRightShowType rightShowType;
/// 右侧视图 时间
@property (copy, nonatomic) void(^rightViewEvent)(NSIndexPath * passIndexPath, YHOptionCellRightShowType rightShowType, YHOptionTitleTableViewCell * passCell, NSString * passValue);

/// 右侧 标题视图
@property (retain, nonatomic) UILabel * rightTitleView;
/// 右侧 标题视图
@property (retain, nonatomic) UISwitch * rightSwitchView;
/// 右侧 图标
@property (retain, nonatomic) UIImageView * rightImageView;
/// 右侧 清除按钮
@property (retain, nonatomic) UIButton * rightCleanView;

-(void)yh_optionInit;


- (void)updateLeftContentByItem:(YHOptionTableViewItem *)passItem;
- (void)updateRightContentByItem:(YHOptionTableViewItem *)passItem;

@end

NS_ASSUME_NONNULL_END
